-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
News methods New format handling CSV NDJSON #235
Conversation
214: Changes related to the next MeiliSearch release (v0.23.0) r=alallema a=meili-bot Related to this issue: meilisearch/integration-guides#142 This PR: - gathers the changes related to the next MeiliSearch release (v0.23.0) so that this package is ready when the official release is out. - should pass the tests against the [latest pre-release of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases). - might eventually contain test failures until the MeiliSearch v0.23.0 is out.⚠️ This PR should NOT be merged until the next release of MeiliSearch (v0.23.0) is out. _This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose._ Done: - #230 - #235 - Add new methods: - `addDocumentsJson(string $documents, ?string $primaryKey = null)` - `addDocumentsNdJson(string $documents, ?string $primaryKey = null)` - `addDocumentsCsv(string $documents, ?string $primaryKey = null)` - Add tests for new methods + files - Remove json header `application/json` for every http methods Co-authored-by: meili-bot <[email protected]> Co-authored-by: Amélie <[email protected]> Co-authored-by: alallema <[email protected]>
@@ -8,7 +8,7 @@ interface Http | |||
{ | |||
public function get($path, array $query = []); | |||
|
|||
public function post(string $path, $body = null, array $query = []); | |||
public function post(string $path, $body = null, array $query = [], string $content_type = null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why $content_type
and not $contentType
if in codebase camelCase is used everywhere? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch was merged into bump-meilisearch-v0.23.0
and not main
. I requested this change in the PR corresponding to the merge of bump-meilisearch-v0.23.0
to main
.
#214 (comment)
So good remark, we changed it! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, missed that 👍
addDocumentsJson(string $documents, ?string $primaryKey = null)
addDocumentsNdJson(string $documents, ?string $primaryKey = null)
addDocumentsCsv(string $documents, ?string $primaryKey = null)
application/json
for every http methods